package com.taotao.designpattern.event.job;


import java.util.Objects;

/**
 * 定时任务
 *
 * @author fanbeibei
 * @version 1.0
 * @date 2021/1/5 14:34
 */
public class CronJob extends AbstractJob {

    public CronJob(Long jobId, String cron) {
        super(jobId, cron);
        if (null == cron || Objects.equals("", cron.trim())) {
            throw new IllegalArgumentException("cron is null!");
        }
    }
}
